package com.dalin.platform.loa.action;

import com.dalin.common.pager.PageInfo;
import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.loa.condition.LoaUserCondition;
import com.dalin.platform.loa.service.LoaService;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-06-03                                                     *
 * @modDate: 2010-06-03                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class UserQueryAction extends StrutsTwoAction {
    private LoaService loaService; // 
    private String condStr; // 查询条件
    private int start; // 查询起始行数
    private int limit; // 每页显示行数

    public String execute() throws Exception {
		super.printInfo("", "===== this action begin");
		try {
			LoaUserCondition cond = (LoaUserCondition)
					getCond(LoaUserCondition.class, condStr, start, limit);
			cond.setProjectId(getCurrentUser().getProjectId());
		    PageInfo pageInfo = loaService.queryLoaUsers(cond);
		    setResContent(pageInfo);
		} catch (Exception e) {
			e.printStackTrace();
		}
        super.printInfo("", "===== this action end");
        return null;
    }

	public LoaService getLoaService() {
		return loaService;
	}

	public void setLoaService(LoaService loaService) {
		this.loaService = loaService;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public String getCondStr() {
		return condStr;
	}

	public void setCondStr(String condStr) {
		this.condStr = condStr;
	}
}
